package com.eshop.modules.system.service.dto;

import java.sql.Timestamp;
import java.io.Serializable;

public class JobDto implements Serializable
{
    private Long id;
    private Long sort;
    private String name;
    private Boolean enabled;
    private DeptDto dept;
    private String deptSuperiorName;
    private Timestamp createTime;
    
    public Long getId() {
        return this.id;
    }
    
    public Long getSort() {
        return this.sort;
    }
    
    public String getName() {
        return this.name;
    }
    
    public Boolean getEnabled() {
        return this.enabled;
    }
    
    public DeptDto getDept() {
        return this.dept;
    }
    
    public String getDeptSuperiorName() {
        return this.deptSuperiorName;
    }
    
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setSort(final Long sort) {
        this.sort = sort;
    }
    
    public void setName(final String name) {
        this.name = name;
    }
    
    public void setEnabled(final Boolean enabled) {
        this.enabled = enabled;
    }
    
    public void setDept(final DeptDto dept) {
        this.dept = dept;
    }
    
    public void setDeptSuperiorName(final String deptSuperiorName) {
        this.deptSuperiorName = deptSuperiorName;
    }
    
    public void setCreateTime(final Timestamp createTime) {
        this.createTime = createTime;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof JobDto)) {
            return false;
        }
        final JobDto other = (JobDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$sort = this.getSort();
        final Object other$sort = other.getSort();
        Label_0102: {
            if (this$sort == null) {
                if (other$sort == null) {
                    break Label_0102;
                }
            }
            else if (this$sort.equals(other$sort)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$enabled = this.getEnabled();
        final Object other$enabled = other.getEnabled();
        Label_0139: {
            if (this$enabled == null) {
                if (other$enabled == null) {
                    break Label_0139;
                }
            }
            else if (this$enabled.equals(other$enabled)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        Label_0176: {
            if (this$name == null) {
                if (other$name == null) {
                    break Label_0176;
                }
            }
            else if (this$name.equals(other$name)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$dept = this.getDept();
        final Object other$dept = other.getDept();
        Label_0213: {
            if (this$dept == null) {
                if (other$dept == null) {
                    break Label_0213;
                }
            }
            else if (this$dept.equals(other$dept)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$deptSuperiorName = this.getDeptSuperiorName();
        final Object other$deptSuperiorName = other.getDeptSuperiorName();
        Label_0250: {
            if (this$deptSuperiorName == null) {
                if (other$deptSuperiorName == null) {
                    break Label_0250;
                }
            }
            else if (this$deptSuperiorName.equals(other$deptSuperiorName)) {
                break Label_0250;
            }
            return false;
        }
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        if (this$createTime == null) {
            if (other$createTime == null) {
                return true;
            }
        }
        else if (this$createTime.equals(other$createTime)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof JobDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $sort = this.getSort();
        result = result * 59 + (($sort == null) ? 43 : $sort.hashCode());
        final Object $enabled = this.getEnabled();
        result = result * 59 + (($enabled == null) ? 43 : $enabled.hashCode());
        final Object $name = this.getName();
        result = result * 59 + (($name == null) ? 43 : $name.hashCode());
        final Object $dept = this.getDept();
        result = result * 59 + (($dept == null) ? 43 : $dept.hashCode());
        final Object $deptSuperiorName = this.getDeptSuperiorName();
        result = result * 59 + (($deptSuperiorName == null) ? 43 : $deptSuperiorName.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "JobDto(id=" + this.getId() + ", sort=" + this.getSort() + ", name=" + this.getName() + ", enabled=" + this.getEnabled() + ", dept=" + this.getDept() + ", deptSuperiorName=" + this.getDeptSuperiorName() + ", createTime=" + this.getCreateTime() + ")";
    }
}
